Python Program to Calculate the Number of Digits and Letters in a String